const formItemLayout = {
  labelCol: { span: 5 }, // 左侧 label 宽度
  wrapperCol: { span: 19 }, // 右侧 控件 宽度
  style: {
    marginBottom: 24
  }
};

// 一行显示个数
const ColConfig = {
  xs: 24, // <576
  sm: 24, // >= 576
  md: 24, // >= 768
  lg: 24, // >= 992
  xl: 24, // >= 1200
  xxl: 24, // >= 1600
}

export const modalCondition = [
  {
    inputType: 'input',
    title: 'name',
    label: '区域名称',
    itemConfig: {
      rules: [{
        required: true,
        message: '请填写主体名称'
      }]
    },
    componentsConfig: {
      placeholder: '请输入',
      maxLength: 20,
      autoComplete: 'off'
    },
    formItemLayout,
    ColConfig,
  },
  {
    inputType: 'select',
    title: 'pid',
    label: '上级区域',
    componentsConfig: {
      placeholder: '请选择',
      allowClear: true
    },
    selectCondition: [],
    formItemLayout,
    ColConfig,
  },
  {
    inputType: 'textArea',
    title: 'remark',
    label: '说明',
    formItemLayout,
    ColConfig,
    componentsConfig: {
      maxLength: 200,
      placeholder: '输入内容',
    }
  },
]
